import {EntityId, PageQueryParams} from "kf-web-library";

export interface PayRecordPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
}

export interface PayRecord{
  deleted: number; //删除标记
  id: EntityId; //主键
  orderId: number; //关联订单ID
  orderNo: string; //订单编号
  transactionId: string; //收钱吧交易流水号
  paymentMethod: string; //支付方式(支付宝,微信,银行卡) PaymentMethod
  paymentAmount: number; //支付金额
  paymentStatus: string; //支付状态(处理中,成功,失败) PayStatus
  paymentTime: string; //支付完成时间
  callbackTime: string; //回调时间
  callbackContent: string; //回调内容
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
}


export interface PayRecord_Create{
  orderId: EntityId; //关联订单ID
  orderNo: string; //订单编号
  transactionId: string; //收钱吧交易流水号
  paymentMethod: string; //支付方式(支付宝,微信,银行卡) PaymentMethod
  paymentAmount: number; //支付金额
  paymentStatus: string; //支付状态(处理中,成功,失败) PayStatus
  paymentTime: string; //支付完成时间
  callbackTime: string; //回调时间
  callbackContent: string; //回调内容
}



export interface PayRecord_Modify extends PayRecord_Create {
  id: EntityId;
}

export interface PayRecord_Patch extends Partial<PayRecord_Modify> {
  id: EntityId;
}

